<template>
  <div class="common-layout">
    <el-container>
      <el-header>
        <Header></Header>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <Menu></Menu>
        </el-aside>
        <div style="flex:1;flex-basis: auto;position: relative;">
          <RouterView />
        </div>
      </el-container>
    </el-container>
  </div>
</template>

<script setup>
// import { created } from 'vue'

import Menu from '@/components/left/Menu.vue'
import Header from '@/components/head/Header.vue'
import { RouterView } from 'vue-router'
// created(() => {
//   const token = localStorage.getItem('token');
//   if(!token) {
//     window.location.href = '/login'
//   }
// })

// console.log(import.meta.env);

</script>
